Common collections
2026-09-25 ใน The rust programming language 3rd edition(online document)Vectors
let a = vec![1,2,3,4];
let b:Vec<i32>=Vec::new();
- The true form of Vector is a Structure type. So when you define vector, you can use Vec::new() function, just like defining any new structure.
2026-10-04 13:50